<h2 class="ourCompany-hdr"><%= link_to image_tag("/images/add_cate.png", :title => t('category.new'), :border=>0), new_category_path %>
  <%=  t('category.new')%></h2>

<table width="200" align="center" border="0" cellspacing="2" cellpadding="2">
  <% @categories.each do |category| %>


	      <tr>
	        <th align="right" scope="row"><img src="/images/category.png" width="32" height="32" /></th>
                <th nowrap="nowrap" align="right"><%=  t('category.name')%> :</th>
	        <td align="left"><%=h category.CategoryName %></td>
                <td><%= link_to image_tag("/images/eye.png", :title => t('category.show'), :border=>0), category %></td>
                <td><%= link_to image_tag("/images/edit_event.png", :title => t('category.edit'), :border=>0), edit_category_path(category) %></td>
                  <td><td><%= link_to 'Destroy', category, :confirm => 'Are you sure? All association(Events,Machines,etc) will be deleted', :method => :delete %></td></td>
              </tr>
        <% end %>
      </table>


